﻿//-----------------------------------------------------------------------
// <copyright file="EventNextArgs.cs" company="FastNET Services">
//     Copyright (c) 2008-2009. All Rights Reserved.
// </copyright>
// <license>
//     GPLv2
// </license>
// <warranty>
//     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING
//     BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
//     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
//     DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//     OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// </warranty>
//-----------------------------------------------------------------------
#region Usings

using System;
using GateShift.Common.Controls.Wizards.Pages;

#endregion

namespace GateShift.Common.Controls.Wizards
{
    /// <summary>
    /// Event parameters by which usr can control logic of page show
    /// </summary>
    public class EventNextArgs : EventArgs
    {
        /// <summary>
        /// Initializes a new instance of the EventNextArgs class
        /// </summary>
        /// <param name="page">Page the wizard is displaying next</param>
        public EventNextArgs(WizardPageBase page)
        {
            CurrentPage = page;
            Step = 1;
        }

        /// <summary>
        /// Initializes a new instance of the EventNextArgs class
        /// </summary>
        /// <param name="page">Page the wizard is displaying next</param>
        /// <param name="step">The step number for the next step</param>
        public EventNextArgs(WizardPageBase page, int step)
            : this(page)
        {
            Step = step;
        }

        /// <summary>
        /// Gets the page the wizard is displaying next
        /// </summary>
        public WizardPageBase CurrentPage { get; private set; }

        /// <summary>
        /// Gets the step number for the next step
        /// </summary>
        public int Step { get; private set; }
    }
}